package com.kizuki.design.chain2;

import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(3)
@Component
@Slf4j
public class UnknowHandler extends AbstractHandler{

    @Override
    protected void doHandle(PeopleContent peopleContent) {
        log.info("不是男的也不是女的, 什么人妖?");
    }

    @Override
    protected boolean support(SexEnum sexEnum) {
        return !SexEnum.MAN.equals(sexEnum) && !SexEnum.WOMAN.equals(sexEnum);
    }

}
